Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can specify repository policy #73

Merged
merged 1 commit into from
Mar 10, 2014
Merged

Can specify repository policy #73

merged 1 commit into from
Mar 10, 2014

Conversation

s-bernard
Copy link
Contributor

This commit allows user of the repository resources to specify the policy (SNAPSHOT or RELEASE(default)) of a repository.
This does not break previous API.

@KAllan357
Copy link
Contributor

👍 Thanks!

KAllan357 added a commit that referenced this pull request Mar 10, 2014
Can specify repository policy
@KAllan357 KAllan357 merged commit f2ad702 into RiotGamesCookbooks:master Mar 10, 2014
@s-bernard s-bernard deleted the config-policy branch March 11, 2014 09:59
@felipecsl
Copy link

This doesn't seem to work. I'm trying like this:

nexus_proxy_repository "sonatype-snapshots" do
  url "https://oss.sonatype.org/content/repositories/snapshots/"
  policy "SNAPSHOT"
end

Am I missing something?

@s-bernard
Copy link
Contributor Author

Hi @felipecsl, did you try in lowercase ?

@felipecsl
Copy link

I did, no luck. I always defaults to Release policy

@s-bernard
Copy link
Contributor Author

I verified in the code, it should be "SNAPSHOT" as advertised. Look at https://github.com/RiotGamesMinions/nexus_cli/blob/master/lib/nexus_cli/mixins/repository_actions.rb line 203.

@felipecsl
Copy link

weird, dunno why it didnt work for me then. WIll try again later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants